Page({
  data: {
    
  },
  // 开台方式点击事件
  handleOpenTypeClick(event) {
    const { type } = event.currentTarget.dataset
    if (type === '1') {
      // 押金
      this.payDetailDialog.show({ showOpenDescType: '1' })
    } else if (type === '2') {
      // 会员
      this.payDetailDialog.show({ showOpenDescType: '2' })
    } else if (type === '3') {
      // 套餐
      wx.navigateTo({
        url: '/pages/open-stage-package/open-stage-package',
      })
    } else if (type === '4') {
      // 团购券
      this.teamOpenDialog.show()
    } else if (type === '5') {
      // 预定

    }
  },
  // 确认开台
  handlePayDescConfirm() {
    console.log('确认开台');
  },
  onLoad(options) {
    
  },
  onReady() {
    this.payDetailDialog = this.selectComponent('#dialog-pay-desc')
    this.teamOpenDialog = this.selectComponent('#dialog-team-open')
  },
})